package cn.fengsweb.tokyotyrant
{
	import cn.fengsweb.tokyotyrant.define.TokyoTyrantQueryFunctionName;
	
	import flash.utils.ByteArray;
	
	internal class OutOne
	{
		private var _sendBytes:ByteArray;
		
		public function get sendBytes():ByteArray
		{
			return _sendBytes;
		}
		
		public function OutOne(key:String)
		{
			var query:TokyoTyrantQuery	= new TokyoTyrantQuery(TokyoTyrantQueryFunctionName.OUT);
			
			var vbuf:ByteArray	= new ByteArray();
				vbuf.writeBytes(Util.string2Bytes(key));
			
			query.addArguments(vbuf);
			
			_sendBytes	= query.sendBytes;
		}
	}
}